// src/database/mysql/entities/user.entity.ts
import {
  Entity,
  PrimaryColumn,
  Column,
  UpdateDateColumn,
  CreateDateColumn,
} from 'typeorm';
import { v4 as uuidv4 } from 'uuid';

@Entity()
export class Dog {
  @PrimaryColumn('varchar', { length: 32 }) // 适配 UUID
  id: string = uuidv4().replace(/-/g, ''); // 初始化为 UUID

  @Column()
  dogName: string;

  @CreateDateColumn({ name: 'createdAt' })
  createdAt: Date;

  @UpdateDateColumn({ name: 'updatedAt' })
  updatedAt: Date;
}
